<?php
$prefix = $position == 'left' ? 'lb' : 'rb';
$class = $position == 'left' ? 'left_box' : 'right_box';
?>

<div id="<?php echo $class ?>">
	<a href="<?php include_component('linker', 'articleLinkBuilder', array('node' => $item['node'])) ?>">
		<div class="<?php echo $prefix ?>_title" style="background: <?php echo CustomizationHelper::dark($item['node']) ?>;">
			<div class="<?php echo $prefix ?>_arrowspace"><img src="<?php echo CustomizationHelper::averagearrow($item['node']) ?>" width="43" height="40" alt="Nool" /></div>
			<span class="smaller_big_title" style="color: <?php echo CustomizationHelper::font($item['node']) ?>;"><?php echo $item['node']['title'] ?></span>
			<span class="smaller_big_title_sub" style="color: <?php echo CustomizationHelper::font($item['node']) ?>;"><?php echo $item['node']['description'] ?></span>
		</div>
	</a>

	<?php
		$link = get_component('linker', 'newsItem', array('new' => $item['news'][0]));
	?>
	<div class="<?php echo $prefix ?>_content">
		<div class="<?php echo $prefix ?>_pic">
			<a href="<?php echo $link?>"><img src="<?php echo @myPicture::getInstance($item['news'][0]['picture'])->thumbnail(355,196,'center')->url()?>" width="355" height="196" alt="" /></a>
			<p class="<?php echo $prefix ?>_description">
				<a href="<?php echo $link ?>" class="desc_title_smaller" style="color: <?php echo CustomizationHelper::dark($item['node']) ?>;"><?php echo $item['news'][0]['name'] ?></a>
				<span class="desc_text_smaller"><?php echo $item['news'][0]['description'] ?></span>
			</p>
		</div>
		<?php for($i = 1; $i <= 3 && $i < count($item['news']); ++$i): ?>
			<a href="<?php include_component('linker', 'newsItem', array('new' => $item['news'][$i]))?>"><?php echo $item['news'][$i]['name'] ?></a><br />
		<?php endfor; ?>
	</div>
</div>
